let fs = require("fs");
const exec = require('child_process').execSync;


function execute(cmd) {
    exec(cmd, { stdio: 'inherit' });
}

function compress_res(config) {
    const game_name = process.argv[3];

    console.log("开始压缩资源",game_name);
    const compress_cmd = `python3 compressimg.py ${config.nativePath}/assets`
    execute(compress_cmd);
    console.log("压缩资源完成");
}

compress_res();